import { ProDescriptions } from '@ant-design/pro-components';
import { Divider, Modal, Typography } from 'antd';
const { Title } = Typography;
interface Iprops {
  isShowOnline: (show: boolean) => void;
  onlineisModalOpen: boolean;
  onlineId: number | undefined;
}
const OnlineAssessmentInfo = (props: Iprops) => {
  const { isShowOnline, onlineisModalOpen, onlineId } = props;
  return (
    <Modal
      title="评估详情"
      open={onlineisModalOpen}
      onCancel={() => isShowOnline(false)}
      width={1100}
      footer={null}
    >
      <Divider />
      <Typography>
        {/* 评估详情 */}
        <ProDescriptions
          title=""
          column={4}
          style={{
            padding: '0px 20px 0 20px',
          }}
          // request={async (params) => get_oldinfo(params)}
          columns={[
            {
              title: '评估时间',
              key: 'time',
              dataIndex: 'time',
            },
            {
              title: '评估驿站',
              key: 'yizhan',
              dataIndex: 'yizhan',
            },
            {
              title: '评估结果',
              key: 'result',
              dataIndex: 'result',
            },
          ]}
        ></ProDescriptions>
        <Title level={5}>基本能力评估</Title>
      </Typography>
    </Modal>
  );
};
export default OnlineAssessmentInfo;
